import { developmentUrl } from "../config/env";
import request from "../config/axios";

//文件存储表格数据接口
// /fileMgr/list?page=1&limit=20&originalFileName=
export const fileMgrlist = (data) => request({
    url: `${developmentUrl}/fileMgr/list?page=${data.page}&limit=${data.limit}&originalFileName=${data.originalFileName}`,
    method: "GET"
})
//下载 /file/download?&fileName=7c4fe3d6-7618-4365-ae97-63dd6e6fcfde.png
export const filedownload = (data) => request({
    url: `${developmentUrl}//file/download?&fileName=${data.fileName}`,
    method: "GET",
    responseType:'blob',
})
